/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.tor.tribes.types;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 *
 * @author Torridity
 */
@Entity
@Table(name = "ReportGroupMapping")
public class ZebraReportGroupMapping {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    @OneToOne
    private ZebraReportAccessGrant grant;
    @OneToOne
    private ZebraReportGroup group;

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the report
     */
    public ZebraReportAccessGrant getGrant() {
        return grant;
    }

    /**
     * @param report the report to set
     */
    public void setGrant(ZebraReportAccessGrant report) {
        this.grant = report;
    }

    /**
     * @return the group
     */
    public ZebraReportGroup getGroup() {
        return group;
    }

    /**
     * @param group the group to set
     */
    public void setGroup(ZebraReportGroup group) {
        this.group = group;
    }
}
